package com.jiunuan.live.user.utils;

public class TagInfoUtils {
    /**
     * 判断是否包含这个标签
     * @param tagInfo 用户当前的标签值
     * @param matchTag 被查询是否匹配的标签值
     * @return
     */
    public static boolean isContain(Long tagInfo, Long matchTag){
        return tagInfo != null && matchTag != null && matchTag > 0 && (tagInfo & matchTag) == matchTag;
    }
}
